package com.hx.myblog3.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.hx.myblog3.entity.ArticleType;
import com.hx.myblog3.repository.ArticleTypeRepo;

@Component
public class ArticleTypeService {
	@Autowired
	private ArticleTypeRepo atp;
	
	public List<ArticleType> all(){
		return (List<ArticleType>) atp.findAll();
	}
	public ArticleType findOne(Integer id){
		return atp.findOne(id);
	}

}
